package com.green.springsecuritydemo1.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    //跳转到登录页面
    @GetMapping("/to_login")
    public String toLogin(){
        System.out.println("跳转到登录页面");
        return "login";
    }

    @GetMapping("/index")
    public String toIndex(){
        System.out.println("跳转首页");
        return "index";
    }
}
